<?php
	$sql=$mysqli->query("select MA_TIN,TIEU_DE, HINH_ANH,TOM_TAT,NGAY_DANG from qldl_tin_tuc limit 0,2");
	while ($row=$sql->fetch_array()){
	echo "<ul class='list-tour' >
		<li>
  		<img src='admin/tin_tuc/upload/news/".$row['HINH_ANH']."' width='180' height='150'/>
		<div class='info-tour'><b><a href='index.php?id=chitiet_tt&page=".$row['MA_TIN']."'>
        <font style='text-transform:uppercase'>".$row['TIEU_DE']."</a></font></b><br />
        <i><font style='color:#999;  font-size: 12px;' >Ngày đăng:&nbsp;";
	$date = $row['NGAY_DANG'];
	$arr_date = explode("-",$date);
	$day = $arr_date[2];
	$month = $arr_date[1];
	$year = $arr_date[0];
	$ngay_dang = $day."/".$month."/".$year;	
	echo $ngay_dang;
	echo"</font></i><br/>
         <font style='font-size:13pt; color:#666;'>".$row['TOM_TAT']."</font></div></li></ul><hr>";
	}
?>
